package entidade;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@SequenceGenerator(name = "PK_SITUACAO", sequenceName = "GEN_SITUACAO_ID")
@NamedQueries({
	@NamedQuery(name = "situacao.findAll", query = "select s from Situacao s")
})
@Table(name = "situacao")
public class Situacao {

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "PK_SITUACAO")
	@Column(name="cd_situacao")
	private Integer codigo;
	private String descricao;

	public Integer getCodigo() {
		return codigo;
	}

	public void setCodigo(Integer codigo) {
		this.codigo = codigo;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public String toString() {
		return this.descricao;
	}

}
